package com.xuecheng.framework.domain.course;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by admin on 2018/2/10.
 */
@Data
@ToString
@Entity
@Table(name="course_pub")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class CoursePub implements Serializable {
    private static final long serialVersionUID = -916357110051689487L;
    @Id
    @GeneratedValue(generator = "jpa-assigned")
    @Column(length = 32)
    private String id;

    private String name;

    private String users;

    private String mt;

    private String st;

    private String grade;

    private String studymodel;

    private String teachmode;

    private String description;

    private String pic;//图片

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timestamp;//时间戳

    private String charge;

    private String valid;

    private String qq;
    private Float price;
    private Float price_old;

    private String expires;

    private String teachplan;//课程计划

    @Column(name="pub_time")
    private String pubTime;//课程发布时间
}
